package com.boc.langxiang.entity.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Li Guoxi on 2016/6/29.
 */
public class ProductDetailInfo implements Parcelable {
    private String id;
    private String title;
    private String content;
    private String price;
    private List<PhotoBean> photo;
    private String timeline;
    private int collect;
    private String collect_status;
    private String remark;
    private String xinghao;
    private List<SpecificationBean> more;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public List<PhotoBean> getPhoto() {
        return photo;
    }

    public void setPhoto(List<PhotoBean> photo) {
        this.photo = photo;
    }

    public String getTimeline() {
        return timeline;
    }

    public void setTimeline(String timeline) {
        this.timeline = timeline;
    }

    public int getCollect() {
        return collect;
    }

    public void setCollect(int collect) {
        this.collect = collect;
    }

    public String getCollect_status() {
        return collect_status;
    }

    public void setCollect_status(String collect_status) {
        this.collect_status = collect_status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getXinghao() {
        return xinghao;
    }

    public void setXinghao(String xinghao) {
        this.xinghao = xinghao;
    }

    public List<SpecificationBean> getMore() {
        return more;
    }

    public void setMore(List<SpecificationBean> more) {
        this.more = more;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.title);
        dest.writeString(this.content);
        dest.writeString(this.price);
        dest.writeTypedList(this.photo);
        dest.writeString(this.timeline);
        dest.writeInt(this.collect);
        dest.writeString(this.collect_status);
        dest.writeString(this.remark);
        dest.writeString(this.xinghao);
        dest.writeTypedList(this.more);
    }

    public ProductDetailInfo() {
    }

    protected ProductDetailInfo(Parcel in) {
        this.id = in.readString();
        this.title = in.readString();
        this.content = in.readString();
        this.price = in.readString();
        this.photo = in.createTypedArrayList(PhotoBean.CREATOR);
        this.timeline = in.readString();
        this.collect = in.readInt();
        this.collect_status = in.readString();
        this.remark = in.readString();
        this.xinghao = in.readString();
        this.more = in.createTypedArrayList(SpecificationBean.CREATOR);
    }

    public static final Creator<ProductDetailInfo> CREATOR = new Creator<ProductDetailInfo>() {
        @Override
        public ProductDetailInfo createFromParcel(Parcel source) {
            return new ProductDetailInfo(source);
        }

        @Override
        public ProductDetailInfo[] newArray(int size) {
            return new ProductDetailInfo[size];
        }
    };
}
